import request from '@/utils/request'

// 查询用户和社区关联列表
export function listApply(query) {
  return request({
    url: '/system/apply/list',
    method: 'get',
    params: query
  })
}

// 查询用户和社区关联列表
export function listApplyCurrent(query) {
  return request({
    url: '/system/apply/list/current',
    method: 'get',
    params: query
  })
}

// 查询用户和社区关联详细
export function getApply(id) {
  return request({
    url: '/system/apply/' + id,
    method: 'get'
  })
}

// 新增用户和社区关联
export function addApply(data) {
  return request({
    url: '/system/apply',
    method: 'post',
    data: data
  })
}

// 修改用户和社区关联
export function updateApply(data) {
  return request({
    url: '/system/apply',
    method: 'put',
    data: data
  })
}

// 删除用户和社区关联
export function delApply(ids) {
  return request({
    url: '/system/apply/' + ids,
    method: 'delete'
  })
}

// 导出用户和社区关联
export function exportApply(query) {
  return request({
    url: '/system/apply/export',
    method: 'get',
    params: query
  })
}
